{% extends 'base.twig' %}

{% block breadcrumb %}
	<ol class="breadcrumb">
		<li class="active">Вход</li>
	</ol>
{% endblock %}


{% block content %}
	<div class="col-md-4">

		{% if error %}
			<div class="panel panel-warning">
				<div class="panel-body">
					<span class="glyphicon glyphicon-exclamation-sign"></span>
					{% if error is constant('System_Errors::ERROR_AUTH_DENIED') %}Неверный логин/пароль{% endif %}
				</div>
			</div>
		{% endif %}

		<fieldset>
			<legend>Вход:</legend>
			<form method="post" role="form" class="form-horizontal">
				<div class="form-group">
					<label for="authLogin" class="col-sm-3 control-label">Логин/e-mail</label>

					<div class="col-sm-9">
						<input type="text" class="form-control" name="{{ name }}[login]" id="authLogin" placeholder="ваш логин/e-mail"><br/>
					</div>
				</div>
				<div class="form-group">
					<label for="authPassword" class="col-sm-3 control-label">Пароль</label>

					<div class="col-sm-9">
						<input type="password" class="form-control" name="{{ name }}[password]" id="authPassword" placeholder="ваш пароль">
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-3 col-sm-9">
						<button type="submit" class="btn btn-primary btn-lg">Войти</button>
						<a href="/user/remember" class="btn btn-default btn-lg">Восстановить</a>
					</div>
				</div>
			</form>
		</fieldset>
	</div>
{% endblock %}
